package xin.marcher.module.rights.service;

import xin.marcher.module.common.core.JsonResult;
import xin.marcher.module.rights.domain.dto.PermissionDTO;
import xin.marcher.module.rights.domain.request.PermissionRequest;
import xin.marcher.module.rights.domain.request.QueryPermissionRequest;
import xin.marcher.module.rights.domain.request.RemovePermissionRequest;

import java.util.List;

/**
 *
 */
public interface PermissionService {

    /**
     * 添加权限
     */
    JsonResult savePermission(PermissionRequest request);

    /**
     * 删除权限
     */
    JsonResult removePermission(RemovePermissionRequest request);

    /**
     * 查询权限列表
     */
    List<PermissionDTO> queryPermission(QueryPermissionRequest request);
}
